package com.lxmes.business.domain;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.lxmes.common.annotation.Excel;
import com.lxmes.common.core.domain.BaseEntity;

/**
 * 入库任务对象 cc_ruku_main
 *
 * @author 王超
 * @date 2022-07-03
 */
public class CcRukuMain extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 业务类型 */
    @Excel(name = "业务类型")
    private Long rukuType;

    /** 单号 */
    @Excel(name = "单号")
    private String danhao;
    /**关联单号 */
    @Excel(name = "关联单号")
    private String gldanhao;

    @Excel(name = "入库总数量")
    private BigDecimal totalNum;
    /** 仓库编码 */
    @Excel(name = "仓库编码")
    private String stockId;

    /** 仓库名称 */
    @Excel(name = "仓库名称")
    private String stockName;
    /** 库区编码 */
    @Excel(name = "库区编码")
    private String kuquCode;

    /** 库区名称 */
    @Excel(name = "库区名称")
    private String kuquName;
    /** 库位编码 */
    @Excel(name = "库位编码")
    private String kuweiCode;
    /** 状态(0 初始化 1.已入库) */
    @Excel(name = "状态(0 待执行 1.已完成)")
    private Long state;
    /** 所属组织 */
    private Long deptId;

    /** 更新时间 */
    private String beginTime;

    /** 更新时间 */
    private String endTime;

    /** 总额 */
    @Excel(name = "总额")
    private BigDecimal totalPrice;


    /** 批次 */
    @Excel(name = "批次")
    private String lot;

    /** 入库时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "入库时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date rukuDate;
    //入库方式（1-原材料入库 2-产成品入库）
    private String rukuFlag;
    //生产日期
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date scDate;

    public Date getScDate() {
        return scDate;
    }

    public void setScDate(Date scDate) {
        this.scDate = scDate;
    }


    public String getRukuFlag() {
        return rukuFlag;
    }

    public void setRukuFlag(String rukuFlag) {
        this.rukuFlag = rukuFlag;
    }

    private List<CcRukuDetail>infoList;
    private String queryParams;

    public String getQueryParams() {
        return queryParams;
    }

    public void setQueryParams(String queryParams) {
        this.queryParams = queryParams;
    }

    public String getDanhao() {
        return danhao;
    }

    public void setDanhao(String danhao) {
        this.danhao = danhao;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setRukuType(Long rukuType)
    {
        this.rukuType = rukuType;
    }

    public Long getRukuType()
    {
        return rukuType;
    }
    public void setStockId(String stockId)
    {
        this.stockId = stockId;
    }

    public String getStockId()
    {
        return stockId;
    }
    public void setStockName(String stockName)
    {
        this.stockName = stockName;
    }

    public String getKuquCode() {
        return kuquCode;
    }

    public void setKuquCode(String kuquCode) {
        this.kuquCode = kuquCode;
    }

    public String getKuquName() {
        return kuquName;
    }

    public void setKuquName(String kuquName) {
        this.kuquName = kuquName;
    }

    public String getKuweiCode() {
        return kuweiCode;
    }

    public void setKuweiCode(String kuweiCode) {
        this.kuweiCode = kuweiCode;
    }

    public String getStockName()
    {
        return stockName;
    }
    public void setRukuDate(Date rukuDate)
    {
        this.rukuDate = rukuDate;
    }

    public Date getRukuDate()
    {
        return rukuDate;
    }

    public BigDecimal getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(BigDecimal totalPrice) {
        this.totalPrice = totalPrice;
    }

    public String getLot() {
        return lot;
    }

    public void setLot(String lot) {
        this.lot = lot;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public List<CcRukuDetail> getInfoList() {
        return infoList;
    }

    public void setInfoList(List<CcRukuDetail> infoList) {
        this.infoList = infoList;
    }

    public BigDecimal getTotalNum() {
        return totalNum;
    }

    public void setTotalNum(BigDecimal totalNum) {
        this.totalNum = totalNum;
    }

    public Long getState() {
        return state;
    }

    public void setState(Long state) {
        this.state = state;
    }

    public String getBeginTime() {
        return beginTime;
    }

    public void setBeginTime(String beginTime) {
        this.beginTime = beginTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }
    public String getGldanhao() {
        return gldanhao;
    }
    public void setGldanhao(String gldanhao) {
        this.gldanhao = gldanhao;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("rukuType", getRukuType())
            .append("stockId", getStockId())
            .append("stockName", getStockName())
            .append("rukuDate", getRukuDate())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
